home *** CD-ROM | disk | FTP | other *** search
- VERSION 2.00
- Begin Form Form1
- Caption = "Rotate.DLL Evaluation"
- ClientHeight = 4380
- ClientLeft = 1035
- ClientTop = 555
- ClientWidth = 7365
- Height = 4785
- Left = 975
- LinkTopic = "Form1"
- ScaleHeight = 4380
- ScaleWidth = 7365
- Top = 210
- Width = 7485
- WindowState = 2 'Maximized
- Begin CommandButton Command3
- Caption = "Exit"
- Height = 495
- Left = 3030
- TabIndex = 4
- Top = 1200
- Width = 1260
- End
- Begin CommandButton Command2
- Caption = "Rotate"
- Height = 495
- Left = 3030
- TabIndex = 3
- Top = 240
- Width = 1260
- End
- Begin CommandButton Command1
- Caption = "Mirror"
- Height = 495
- Left = 3030
- TabIndex = 2
- Top = 720
- Width = 1260
- End
- Begin PictureBox Picture2
- AutoRedraw = -1 'True
- Height = 3015
- Left = 240
- ScaleHeight = 199
- ScaleMode = 3 'Pixel
- ScaleWidth = 178
- TabIndex = 1
- Top = 1185
- Width = 2700
- End
- Begin PictureBox Picture1
- AutoRedraw = -1 'True
- AutoSize = -1 'True
- Height = 690
- Left = 120
- Picture = FLIP.FRX:0000
- ScaleHeight = 44
- ScaleMode = 3 'Pixel
- ScaleWidth = 172
- TabIndex = 0
- Top = 240
- Width = 2610
- End
- Declare Function FLIP Lib "rotate.DLL" (ByVal src As Integer, ByVal dest As Integer, ByVal Picture%) As Integer
- Declare Function ROTATE Lib "rotate.DLL" (ByVal src2 As Integer, ByVal dest2 As Integer, ByVal Picture2%) As Integer
- Sub Command1_Click ()
- screen.MousePointer = 11
- Dim g As Integer
- Picture2.Picture = LoadPicture()
- Picture2.Width = Picture1.Width
- Picture2.Height = Picture1.Height
- g = FLIP(form1.Picture1.hDC, form1.Picture2.hDC, form1.Picture1.Picture)
- Picture2.Refresh
- Picture2.Picture = Picture2.Image
- screen.MousePointer = 0
- End Sub
- Sub Command2_Click ()
- screen.MousePointer = 11
- Picture2.Picture = LoadPicture()
- Dim g As Integer
- Picture2.Width = Picture1.Height
- Picture2.Height = Picture1.Width
- g = ROTATE(Picture1.hDC, Picture2.hDC, Picture1.Picture)
- Picture2.Refresh
- Picture2.Picture = Picture2.Image
- screen.MousePointer = 0
- End Sub
- Sub Command3_Click ()
- End Sub
-